/*
 * Teknei 2014 - All rights reserved
 */
package com.teknei.acabus;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Exception class used by persistence layer
 *
 * @author Jorge Amaro
 * @version 1.0
 * @since 1.0
 */
public class PersistenceException extends Exception {

	/**
         * 
         */
	private static final long serialVersionUID = 1L;
	private static final Logger LOG = LoggerFactory
			.getLogger(PersistenceException.class);

	/**
	 * Default constructor
	 */
	public PersistenceException() {
		super();
	}

	/**
	 * @param message
	 */
	public PersistenceException(String message) {
		super(message);
		LOG.error(message);
	}

	/**
	 * @param cause
	 */
	public PersistenceException(Throwable cause) {
		super(cause);
		LOG.error("PersistenceException Error", cause);
	}

	/**
	 * @param message
	 * @param cause
	 */
	public PersistenceException(String message, Throwable cause) {
		super(message, cause);
		LOG.error(message, cause);
	}

}
